
//创建cookie
			function setCookie(name,value,iDay){
				var newDate=new Date()
				newDate.setDate(newDate.getDate()+iDay)
				
				value=encodeURIComponent(value)
				
				document.cookie=name+'='+value+';expires='+newDate+';path=/'
			}

//获取cookie
			function getCookie(name){
				cookie=decodeURIComponent(document.cookie)
				var arr=cookie.split('; ')
				console.log(document.cookie)
				for(var i=0;i<arr.length;i++){
					var arr2=arr[i].split('=')
					if(arr2[0]==name){
						
						return arr2[1]
						
					}
				}
				
			}
			
//删除cookie
			function removeCookie(name){
				setCookie(name,1,-100)
			}